package com.zy.function;

import java.util.function.Function;

public class Demo1 {
    public static void main(String[] args) {
//        Function<String,String> function = new Function<String,String>() {
//            @Override
//            public String apply(String str) {
//                return str;
//            }
//        };
        Function<String,String> function =(str)->{return str;};
        System.out.println(function.apply("asd"));
    }
}
